function Search()
{
  var keyword = document.getElementById( "keyword" ).value;
  if ( keyword.length > 0 ) document.location.href = "./search.aspx?key=" + keyword;
}
function MenuClick( obj )
{
  obj.nextSibling.style.display = ( obj.nextSibling.style.display == "none" ) ? "" : "none";
}
function MenuOpen ( id )
{
  document.getElementById( id ).parentNode.style.display = "";
}
function trackDHL()
{
  var e = document.getElementById( "dhlorder" );
  if ( e.value.length != 0 ){
    window.open( "http://www.cn.dhl.com/publish/cn/zh/eshipping/track.high.html?pageToInclude=RESULTS&AWB=" + e.value + "&type=fasttrack" );
    e.value = "";
  }
}
function trackFedex()
{
  var e = document.getElementById( "fedexorder" );
  if ( e.value.length != 0 ){
    window.open( "http://www.fedex.com/Tracking?ascend_header=1&clienttype=dotcom&cntry_code=us&language=english&tracknumbers=" + e.value );
    e.value = "";
  }
}
function trackUPS()
{
  var e = document.getElementById( "upsorder" );
  if ( e.value.length != 0 ){
    window.open( "http://wwwapps.ups.com/WebTracking/processInputRequest?HTMLVersion=5.0&loc=en_US&Requester=UPSHome&tracknum=" + e.value + "&ignore=&track.x=15&track.y=13" );
    e.value = "";
  }
}




function te(i){
		var divObj=document.getElementById("show_"+i);
		if(divObj.style.display=='' || divObj.style.display=='none')
			divObj.style.display='compact';
		else
			divObj.style.display='none';
		return false;
}






function ShowDiv(ObjID) {
	for(var i=1;i<5;i++) {
		if(document.getElementById("title_"+i)) {
			document.getElementById("title_"+i).className=(ObjID==i)?"cur":"";
			document.getElementById("show_"+i).style.display=(ObjID==i)?"block":"none";
		} else return;
	}
}















